<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>预约管理</title>
	<%@ include file="/common/meta.jsp" %>
	<link href="${ctx}/css/table.css" type="text/css" rel="stylesheet"/>
	<script src="${ctx}/js/table.js" type="text/javascript"></script>
	<script src="${ctx}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
	<script type="text/javascript">
	function goClear(){
	//	$("#mainForm").action = "dictionary!input.action";
		var form = document.getElementById("mainForm");
		form.action = "appoint!delete.action";
		form.submit();
	}
</script>
</head>
<body>
<div style="font-family:Arial;font-size:15px;font-weight:bold;font-style:normal;align:left">当前位置：校园诊所--门诊预约管理</div>
	<form id="mainForm" action="appoint.action" method="post">
	<div id="filter">
	<table width="70%" class="noborder">
	    <tr>
		     <td>起始时间：<input type="text" name="startDate" value="<s:date name='startDate' format='yyyy-MM-dd'/>" id="startDate" readonly="readonly" size="9"
	    	 					 onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/> </td>
	    	 <td>截止时间：<input type="text" name="endDate" value="<s:date name='endDate' format='yyyy-MM-dd'/>" id="endDate" readonly="readonly" size="9"
	    	 					 onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/></td>
	    	 <td><input type="submit" value="查询"></input></td>
	    	 <td><input type="button" onclick="goClear()" value="注销"></input></td>
	    </tr>	    
    </table>
    </div>
	<p></p><p></p>
	<div id="content">
		<table width="95%" border="1" id="customers">
			<tr>
				<th>序号</th>
				<th>职工号/学号</th>
				<th>预约时间</th>
				<th>预约号码</th>
				<th>就诊时间</th>
				<th>描述症状</th>
			</tr>
			<s:iterator value="appointList">
			<tr>
				<td>${id}&nbsp;</td>
				<td>${patient.idNumber}&nbsp;</td>
				<td>${creatDate}&nbsp;</td>
				<td>${apptNo}&nbsp;</td>
				<td>${scheduledDate}&nbsp;</td>
				<td>${symptom}&nbsp;</td>
			</tr>
			</s:iterator>
		</table>
	</div>
</form>		
</body>
</html>